package com.zhongxiangspace.service;

import com.zhongxiangspace.entity.BuildingsAttribute;
import com.zhongxiangspace.entity.OfficeBuildings;
import com.zhongxiangspace.entity.QueryAnalyzer;

import java.util.List;
import java.util.Map;

/**
 * 办公楼
 */
public interface OfficeBuildingService {
    /**
     * 插入data
     *
     * @param officeBuildings
     * @return
     */
    boolean insert(OfficeBuildings officeBuildings);

    /**
     * 获取data
     *
     * @param queryAnalyzer 条件
     * @return
     */
    List<OfficeBuildings> queryByQueryAnalyzer(QueryAnalyzer queryAnalyzer);
    /**
     * 获取单条data
     * @param id
     * @return
     */
    OfficeBuildings queryOne(Integer id);
    /**
     * 更新状态
     * @param officeBuildings 上下线
     * @return
     */
    boolean updataStatusCode(OfficeBuildings officeBuildings);

    /**
     * 更新状态
     * @param officeBuildings 是否热门
     * @return
     */
    boolean updataHotCode(OfficeBuildings officeBuildings);

    /**
     * 删除
     * @param id
     * @return
     */
    boolean delete(Integer id);

    /**
     * 更新data
     * @param office
     * @return
     */
    boolean updata(OfficeBuildings office);

    /**
     *  查询楼盘属性
     * @param building_id 楼盘id
     * @return
     */
    BuildingsAttribute queryAttr(Integer building_id);

    /**
     *  更新属性data
     * @param buildingsAttribute 属性
     * @return
     */
    boolean updataAttr(BuildingsAttribute buildingsAttribute);

    /**
     * 插入属性data
     * @param buildingsAttribute 属性
     * @return
     */
    boolean insertAttr(BuildingsAttribute buildingsAttribute);

    /**
     * 获取楼盘信息
     * @param buildingQueryAnalyzer
     * @return
     */
    List<Map<String,Object>> queryOfficeBuilding(QueryAnalyzer buildingQueryAnalyzer);

}
